﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using Chowpoo.Sql;

namespace CourseSystem.Core.Entities
{
    [Table(Name = "CourseSetting")]
    public class CourseSettingInfo : IDetach
    {
        public CourseSettingInfo()
        {
            Detach();
        }
        #region Model
        private int _id;
        private string _coursecode = "";
        private string _coursename = "";
        private string _teacher = "";
        private string _loginimglogo = "";
        private string _loginimgleft = "";
        private string _loginedimgtop = "";
        private string _adminimgtop = "";
        private int _todayiphits = 0;
        private int _todayhits = 0;
        private int _maxonline = 0;
        private string _courseguide = "";
        private string _coursehelper = "";
        /// <summary>
        /// 
        /// </summary>
        [Column(IsDbGenerated = true, IsPrimaryKey = true, IsVersion = true)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        [DisplayName("课程编号")]
        public string CourseCode
        {
            set { _coursecode = value; }
            get { return _coursecode; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        [DisplayName("课程名称")]
        public string CourseName
        {
            set { _coursename = value; }
            get { return _coursename; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        [DisplayName("负责老师")]
        public string Teacher
        {
            set { _teacher = value; }
            get { return _teacher; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public string LoginImgLogo
        {
            set { _loginimglogo = value; }
            get { return _loginimglogo; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public string LoginImgLeft
        {
            set { _loginimgleft = value; }
            get { return _loginimgleft; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public string LoginedImgTop
        {
            set { _loginedimgtop = value; }
            get { return _loginedimgtop; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public string AdminImgTop
        {
            set { _adminimgtop = value; }
            get { return _adminimgtop; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public int TodayIpHits
        {
            set { _todayiphits = value; }
            get { return _todayiphits; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public int TodayHits
        {
            set { _todayhits = value; }
            get { return _todayhits; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        public int MaxOnline
        {
            set { _maxonline = value; }
            get { return _maxonline; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        [DisplayName("导航")]
        public string CourseGuide
        {
            set { _courseguide = value; }
            get { return _courseguide; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Column]
        [DisplayName("课程使用帮助")]
        public string CourseHelper
        {
            set { _coursehelper = value; }
            get { return _coursehelper; }
        }
        #endregion Model

        public void Detach()
        {

        }
    }
}
